package com.service.impl;

import com.mapper.WarehouseMapper;
import com.pojo.Warehouse;
import com.service.WarehouseService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service("warehouseService")
public class WarehouseServiceImpl implements WarehouseService {
    @Resource
    private WarehouseMapper warehouseMapper;
    @Override
    public int del(Integer id) {
        return warehouseMapper.del(id);
    }

    @Override
    public int add(Warehouse warehouse) {
        return warehouseMapper.add(warehouse);
    }

    @Override
    public int update(Warehouse warehouse) {
        return warehouseMapper.update(warehouse);
    }

    @Override
    public Warehouse get(String warehouseCode) {
        return warehouseMapper.get(warehouseCode);
    }

    @Override
    public Warehouse getCode() {
        return warehouseMapper.getCode();
    }
}
